/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.lineage.server.templates;

/**
 * Class <code>L1EtcItem</code> 数据库模版:道具.
 * 
 * @author jrwz
 * @version 2012-6-16上午09:35:13
 * @see com.lineage.server.templates
 * @since JDK1.7
 */
public final class L1EtcItem extends L1Item {

    /** 序列版本UID. */
    private static final long serialVersionUID = 1L;

    /** 是否可堆叠. */
    private boolean isStackable;
    /** X坐标. */
    private int locX;
    /** Y坐标. */
    private int locY;
    /** 地图ID. */
    private int mapId;
    /** 延迟ID. */
    private int delayId;
    /** 延迟时间. */
    private int delayTime;
    /** 延迟效果. */
    private int delayEffect;
    /** 最高使用次数. */
    private int maxChargeCount;
    /** 是否可以封印. */
    private boolean isCanSeal;

    /** 数据库模版:道具. */
    public L1EtcItem() {
    }

    /**
     * 取得延迟效果.
     * 
     * @return 延迟效果
     */
    public int getDelayEffect() {
        return this.delayEffect;
    }

    @Override
    public int getDelayId() {
        return this.delayId;
    }

    @Override
    public int getDelayTime() {
        return this.delayTime;
    }

    @Override
    public int getLocX() {
        return this.locX;
    }

    @Override
    public int getLocY() {
        return this.locY;
    }

    @Override
    public int getMapId() {
        return this.mapId;
    }

    @Override
    public int getMaxChargeCount() {
        return this.maxChargeCount;
    }

    @Override
    public boolean isCanSeal() {
        return this.isCanSeal;
    }

    @Override
    public boolean isStackable() {
        return this.isStackable;
    }

    /**
     * 设置是否可封印.
     * 
     * @param flag
     *            true:可以、false:不可
     */
    public void setCanSeal(final boolean flag) {
        this.isCanSeal = flag;
    }

    /**
     * 设置延迟效果.
     * 
     * @param i
     *            延迟效果
     */
    public void setDelayEffect(final int i) {
        this.delayEffect = i;
    }

    /**
     * 设置延迟ID.
     * 
     * @param i
     *            延迟ID
     */
    public void setDelayId(final int i) {
        this.delayId = i;
    }

    /**
     * 设置延迟时间.
     * 
     * @param i
     *            延迟时间
     */
    public void setDelayTime(final int i) {
        this.delayTime = i;
    }

    /**
     * 设置X坐标.
     * 
     * @param i
     *            X坐标
     */
    public void setLocX(final int i) {
        this.locX = i;
    }

    /**
     * 设置Y坐标.
     * 
     * @param i
     *            Y坐标
     */
    public void setLocY(final int i) {
        this.locY = i;
    }

    /**
     * 设置地图ID.
     * 
     * @param i
     *            地图ID
     */
    public void setMapId(final int i) {
        this.mapId = i;
    }

    /**
     * 设置最高使用次数.
     * 
     * @param i
     *            最高使用次数
     */
    public void setMaxChargeCount(final int i) {
        this.maxChargeCount = i;
    }

    /**
     * 设置是否可堆叠.
     * 
     * @param flag
     *            true:可以、false:不可
     */
    public void setStackable(final boolean flag) {
        this.isStackable = flag;
    }
}
